import React, { Component } from 'react'

import { getCookie } from '../../utils';
import routes from '../../router/routes';
const root = getCookie("root");  //  拿到 root
export default class index extends Component {
  render() {
    const { location:{pathname} } = this.props
    const flag = routes.some(item => item.path == pathname)  //  flag 为 true，表示存在
    // if(flag && root == "user" ) return <div>亲，您的权限不够，无法进入</div>
    return (
      <div> 404 </div>
    )
  }
}
